package com.bjut.vendormgrsys.web.dto.user;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;

/**
 * Body1
 */
@Validated


public class Body1   {
  @JsonProperty("oldPassword")
  private String oldPassword = null;

  @JsonProperty("newPasswrod")
  private String newPasswrod = null;

  public Body1 oldPassword(String oldPassword) {
    this.oldPassword = oldPassword;
    return this;
  }

  /**
   * 旧密码
   * @return oldPassword
   **/
  @Schema(description = "旧密码")
  
    public String getOldPassword() {
    return oldPassword;
  }

  public void setOldPassword(String oldPassword) {
    this.oldPassword = oldPassword;
  }

  public Body1 newPasswrod(String newPasswrod) {
    this.newPasswrod = newPasswrod;
    return this;
  }

  /**
   * 新密码
   * @return newPasswrod
   **/
  @Schema(description = "新密码")
  
    public String getNewPasswrod() {
    return newPasswrod;
  }

  public void setNewPasswrod(String newPasswrod) {
    this.newPasswrod = newPasswrod;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Body1 body1 = (Body1) o;
    return Objects.equals(this.oldPassword, body1.oldPassword) &&
        Objects.equals(this.newPasswrod, body1.newPasswrod);
  }

  @Override
  public int hashCode() {
    return Objects.hash(oldPassword, newPasswrod);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Body1 {\n");
    
    sb.append("    oldPassword: ").append(toIndentedString(oldPassword)).append("\n");
    sb.append("    newPasswrod: ").append(toIndentedString(newPasswrod)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}
